// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, exportPost, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';
import { param } from 'jquery';


export const getJyqxByIdCard = params => {
    return postRequest('/bysJyqxInfo/getByIdCard', params);
};

// 分页获取数据
export const getJyqxInfoList = params => {
    return postRequest('/bysJyqxInfo/getByPage', params);
};
export const getJyqxRecordByidCard = params => {
    return postRequest('/bysJyqxRecord/getJyqxByidCard', params);
};

// 保存并提申
export const editAndApplyJyqxInfo = params => {
    return postRequest('/bysJyqxInfo/editAndApply', params);
};

export const postExcel = params => {
    return postRequest(`/bysJyqxInfo/import`, params);
};

// 暂存
export const editJyqxInfo = params => {
    return postRequest('/bysJyqxInfo/edit', params);
};

// 作废
export const zfJyqxInfo = params => {
    return postRequest('/bysJyqxInfo/zf', params);
};

// 作废
export const jyqxCancel = params => {
    return postRequest('/bysJyqxInfo/bysqxCancel', params);
};

// 提交申请--毕业生就业去向申请使用
export const bysApplyBusiness = params => {
    return postRequest('/bysJyqxInfo/bysApply', params);
};

// 删除
export const deleteJyqxInfo = params => {
    return postRequest('/bysJyqxInfo/delByIds', params);
};

// 暂存
export const saveOrUpdate = params => {
    return postRequest('/bysJyqxInfo/saveOrUpdate', params);
};

// 获取首页去向填报数据统计
export const getStatisticalData = params => {
    return postRequest('/bysJyqxInfo/getStatisticalData', params);
};
// 获取首页去向填报数据统计
export const getBysJyqxPostDataStatistics = params => {
    return postRequest('/bysJyqxInfo/getBysJyqxPostDataStatistics', params);
};
// 导出政策性市场化岗位数据统计
export const getBysJyqxPostDataStatisticsOutPut = params => {
    return exportPost('/bysJyqxInfo/getBysJyqxPostDataStatisticsOutPut', params);
};
export const exportSearchJyqx = (params) => {
    return exportPost('/bysJyqxInfo/exportCondition',params);
};
//困难群体比较
export const compareKnqt = (params) => {
    return postRequest('/bysJyqxInfo/compareKnqt',params);
};

export const exportSelectJyqx = (params) => {
    return exportPost('/bysJyqxInfo/exportById',params);
};
// todo 获取去向信息分页数据
export const getPageBysJyqxResultData = params => {
    return postRequest('/bysJyqxResult/getPage', params);
};
// todo 去向信息导出所选/全部数据
export const exportSelectJyqxResult = (params) => {
    return exportPost('/bysJyqxResult/export',params);
};
// todo 去向信息导出全部数据
export const exportSearchJyqxResult = (params) => {
    return exportPost('/bysJyqxResult/exportCondition',params);
};

export const huifuApi = (params) => {
    return postRequest('/bysJyqxInfo/ssssss',params);
};

export const buquanApi = (params) => {
    return postRequest('/jb/test',params);
};
//身份证返回信息
export  const getByIdCard= (params) => {
    return getRequest('/dataAuditRecord/getByIdCard',params);
};


